}; 
    
   if (rindex($devicename, $tr{'red'}) > 0){

     system("${swroot}/mods/display_dns/bin/find_dnsaddy.pl");
     my %dnssettings;
     &readhash("${swroot}/red/dns-all", \%dnssettings );
     system("/bin/rm -rf ${swroot}/red/dns-all");

     if ($dnssettings{'DNS1'} != "" || $dnssettings{'DNS2'} != ""){
      	print qq{ 
         <tr> 
            <td>DNS 1:</td> 
            <td>$dnssettings{'DNS1'}</td> 
            <td>DNS 2:</td> 
            <td>$dnssettings{'DNS2'}</td> 
         </tr> 
       };
     }

     if ($dnssettings{'DNS3'} != "" || $dnssettings{'DNS4'} != ""){
      	print qq{ 
         <tr> 
            <td>DNS 3:</td> 
            <td>$dnssettings{'DNS3'}</td> 
            <td>DNS 4:</td> 
            <td>$dnssettings{'DNS4'}</td> 
         </tr> 
       };
     }

  }

   print qq{
